package com.xm.bean.context;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

/**
 * 其他调优手段，调整 Bean 的初始化顺序：
 *   使用 @DependsOn 注解显式指定依赖顺序
 */
public class DependsOnBean04 {
}

@Component
@DependsOn("b")
class A6{
    @Autowired
    private B b;
}